<?php

namespace Standard\Bundle\PageBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;

class PageController extends Controller
{
    /**
     * @Route("/hello/{name}")
     * @Template()
     */
    public function showAction()
    {
        $serviceArticle = $this->container->get('article.service');
    	echo $article = $serviceArticle->getDemo(1);
        echo "<br />";
        $serviceCarousel = $this->container->get('carousel.service');
    	echo $carousel = $serviceCarousel->getDemo(1);
        echo "<br />";
        $serviceAbout = $this->container->get('about.service');
    	echo $about = $serviceAbout->getDemo(1);
        echo "<br />";
        $serviceContact = $this->container->get('contact.service');
    	echo $contact = $serviceContact->getDemo(1);
        echo "<br />";
        $serviceProduct = $this->container->get('product.service');
    	echo $product = $serviceProduct->getDemo(1);
        echo "<br />";
        return $this->render('StandardPageBundle:Page:show.html.twig');
    }
}
